The Java MobileWebDriver is Silk Mobile's implementation of the Selenium API.
This feature is particularly useful for projects that require testing on web browsers: most of the code written using Selenium for desktop browser automation can be re-used for mobile browsers by using the Java MobileWebDriver interface. Never the less, it can be used also to automate Native Applications as well.
Note: Here (JavaDoc) you can find the JavaDoc documenting the API.
To export a test script to Selenium, follow the step-by-step description which appears below.
Generate the script in Selenium:
Step 1: In Silk Mobile, after creating the test, go to the Code tab and, from the drop down list, select Java WebDriver option:
Step 2: The code for the script will be generated in JAVA based on Selenium API.
Step 3: You can copy-paste it into any testing environment which supports JAVA.
To integrate Silk Mobile scripts into your regular testing environment, you need to use built-in clients which are located in the client directory under installation directory.
Following is a list of the files that are provided by Silk Mobile and are required for the integration:
Selenium-api-2.42.2
imageClient.jar
xmlrpc-client-3.1.2.jar
xmlrpc-common-3.1.2.jar
ws-common-util-1.0.2.jar
junit.jar
mobile-webdriver.jar